

        <g:set var="entityName" value="${message(code: 'teacherAttendance.label', default: 'TeacherAttendance')}" />
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <th><g:message code="teacherAttendance.school.label" default="School" /></th>
                   	    
                            <th><g:message code="teacherAttendance.teacher.label" default="Teacher" /></th>
                   	    
                            <g:sortableColumn property="attendance" title="${message(code: 'teacherAttendance.attendance.label', default: 'Attendance')}" />
                        
                            <g:sortableColumn property="leave" title="${message(code: 'teacherAttendance.leave.label', default: 'Leave')}" />
                        
                            <g:sortableColumn property="attendanceTime" title="${message(code: 'teacherAttendance.attendanceTime.label', default: 'Attendance Time')}" />
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${teacherAttendanceInstanceList}" status="i" var="teacherAttendanceInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${teacherAttendanceInstance.id}">${fieldValue(bean: teacherAttendanceInstance, field: "school")}</g:link></td>
                        
                            <td>${fieldValue(bean: teacherAttendanceInstance, field: "teacher")}</td>
                        
                            <td><g:formatBoolean boolean="${teacherAttendanceInstance.attendance}" /></td>
                        
                            <td><g:formatBoolean boolean="${teacherAttendanceInstance.leave}" /></td>
                        
                            <td><g:formatDate date="${teacherAttendanceInstance.attendanceTime}" /></td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${teacherAttendanceInstanceTotal}" />
            </div>
